<html>
<head><meta charset="utf-8"><title>How is syntax highlighting in raw strings implemented? · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/How.20is.20syntax.20highlighting.20in.20raw.20strings.20implemented.3F.html">How is syntax highlighting in raw strings implemented?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="195892165"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/How%20is%20syntax%20highlighting%20in%20raw%20strings%20implemented%3F/near/195892165" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/How.20is.20syntax.20highlighting.20in.20raw.20strings.20implemented.3F.html#195892165">(Apr 30 2020 at 19:50)</a>:</h4>
<p>I'm pleasantly surprised that rust-analyzer can highlight Rust syntax in raw strings, e.g. in <code>check_assist(...)</code> calls -- I'm curious about how it's implemented. Which modules should I be looking at? Thanks!</p>



<a name="195892674"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/How%20is%20syntax%20highlighting%20in%20raw%20strings%20implemented%3F/near/195892674" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/How.20is.20syntax.20highlighting.20in.20raw.20strings.20implemented.3F.html#195892674">(Apr 30 2020 at 19:54)</a>:</h4>
<p><code>syntax_higlighting.rs</code></p>



<a name="195892713"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/How%20is%20syntax%20highlighting%20in%20raw%20strings%20implemented%3F/near/195892713" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/How.20is.20syntax.20highlighting.20in.20raw.20strings.20implemented.3F.html#195892713">(Apr 30 2020 at 19:54)</a>:</h4>
<p>(something about <code>injection</code>)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>